<?php

/**
 * @author nhatnam
 * @copyright 2011
 */

require('../Model/clsphieumuontra.php');

if($_SERVER['REQUEST_METHOD']=='POST')
{
    $sua = $_POST['sua'];
    $xoa = $_POST['xoa'];
    $lapphieu = $_POST['lapphieu'];
    if($lapphieu == 'Lập phiếu')
    {
        themphieumuon();
        header("Location: ../giaodienphieumuontra.php");  
        return;
    }
    if($xoa=='Xóa')
    {
        xoaphieumuon();
        header("Location: ../giaodienphieumuontra.php");  
        return;
    }
    if($sua=='Sửa')
    {
        updatephieumuon();
        header("Location: ../giaodienphieumuontra.php");    
        return;
    }
    
}


?>